package com.nahan.secondapplication.VerticalViewPagerRelated

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.nahan.secondapplication.R

/**
 * @描述：
 * @date: on 2021/3/17
 */
class VerticalAdapter(mParam1: String) : BaseQuickAdapter<String?, BaseViewHolder>(R.layout.item_vertical_list, null) {

    var type="1"
    init  {
        type=mParam1
    }
    override fun convert(holder: BaseViewHolder, item: String?) {
        if (type.equals("1"))
        {
            holder.setText(R.id.tv_type,"非的那几个奶归纳三角臂")
        }else if (type.equals("2"))
        {
            holder.setText(R.id.tv_type,"放奶粉闹鬼啊办法Giua不")
        }else
        {
            holder.setText(R.id.tv_type,"三分就弄我阿尼我让你去inUN看上你范尽可能几啊")
        }

    }
}